home *** CD-ROM | disk | FTP | other *** search
/ Ultra Pack / UltraComputing Technology Demos and Tools.iso / WWW / solidifier.run.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1996-04-08  |  743b  |  31 lines

  1. #!/bin/sh
  2. #
  3. # Look for a specific process
  4. pidproc() {
  5.         pid=`/usr/bin/ps -ef |
  6.                 /usr/bin/grep $1 |
  7.                 /usr/bin/grep -v grep |
  8.                 /usr/bin/awk '{print $2}'`
  9. }
  10.  
  11. # If there is another lava proces running, kill it first...
  12. pidproc 'lava'
  13. if [ "$pid" != "" ]; then
  14.         kill -9 $pid;
  15. fi
  16. /bin/sleep 1
  17. #
  18. #
  19. #
  20. cd ../
  21. ULTRA_PACK_HOME=`pwd`
  22. echo $ULTRA_PACK_HOME
  23. SOLIDIFIERHOME=$ULTRA_PACK_HOME/solidifier
  24. XGLHOME=/opt/SUNWits/Graphics-sw/xgl
  25. XILHOME=/opt/SUNWits/Graphics-sw/xil
  26. LD_LIBRARY_PATH=$XGLHOME/lib:$XILHOME/lib:/usr/openwin/lib:/usr/lib:$LD_LIBRARY_PATH
  27. PATH=$SOLIDIFIERHOME/bin:$PATH
  28. export ULTRA_PACK_HOME SOLIDIFIERHOME PATH LD_LIBRARY_PATH 
  29. cd $SOLIDIFIERHOME/bin
  30. $SOLIDIFIERHOME/bin/lava
  31.